use strict;
use Stdlog;
use File::Spec;
use Test::More;

eval { require Sys::Syslog; };
if( $@ ) {
    plan skip_all => 'Sys::Syslog not installed' 
}else{
    plan tests => 1;
}

# Test 1 -- create Syslog writer
my $writer = Stdlog::Writer->new({writer => 'Syslog'});
ok($writer && ref($writer) eq 'Stdlog::Writer::Syslog',
    "Created Stdlog::Writer::Syslog");